package us.gaaoc.framework.webapp.backingbeans.profile;

import java.io.Serializable;

/**
 * 
 * @author robinsom
 *
 */
public class Links implements Serializable{

	/**
	 * Properties
	 */
	private String navigationRule; 
	private String text;
	
	/**
	 * Constructor
	 *
	 */
	public Links() {
	}

	/**
	 * Constructor with parameters initializes the navigaionRule and text
	 * @param uri
	 * @param text
	 */
	public Links(String uri, String text) {
		this.navigationRule = uri;
		this.text = text; 
	}
	
	
	/**
	 * @return Returns the text.
	 */
	public String getText() {
		return text;
	}

	/**
	 * @param text The text to set.
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return Returns the uri.
	 */
	public String getNavigationRule() {
		return navigationRule;
	}

	/**
	 * @param uri The uri to set.
	 */
	public void setNavigationRule(String navigationRule) {
		this.navigationRule = navigationRule;
	}
	
	/**
	 * This method navigates user by applyng the navigationRule
	 * @return
	 */
	public String doNavigation(){
		return this.navigationRule;
	}	
}
